from selenium import webdriver
import time


def test1():
    chrom = webdriver.Chrome()
    url = "https://www.baidu.com"
    chrom.get(url)
    chrom.maximize_window()
    time.sleep(2)
    chrom.quit()


def test2():
    chrom = webdriver.Chrome()
    url = "https://www.baidu.com"
    chrom.get(url)
    chrom.set_window_rect(500, 600)
    time.sleep(2)
    chrom.quit()

def test03():
    chrom = webdriver.Chrome()
    url = "https://www.baidu.com"
    chrom.get(url)
    time.sleep(2)
    url2 = "https://so.gitee.com/"
    chrom.get(url2)
    time.sleep(2)
    chrom.back()
    time.sleep(2)
    chrom.forward()
    time.sleep(2)
    chrom.quit()


if __name__ == '__main__':
    test03()